<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditLangTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditLangLabel_idlang}" for="idlang" />
                    <h:inputText id="idlang" value="#{langController.selected.idlang}" title="#{bundle.EditLangTitle_idlang}" required="true" requiredMessage="#{bundle.EditLangRequiredMessage_idlang}"/>
                    <h:outputLabel value="#{bundle.EditLangLabel_isoCode}" for="isoCode" />
                    <h:inputText id="isoCode" value="#{langController.selected.isoCode}" title="#{bundle.EditLangTitle_isoCode}" required="true" requiredMessage="#{bundle.EditLangRequiredMessage_isoCode}"/>
                    <h:outputLabel value="#{bundle.EditLangLabel_intitule}" for="intitule" />
                    <h:inputText id="intitule" value="#{langController.selected.intitule}" title="#{bundle.EditLangTitle_intitule}" />
                    <h:outputLabel value="#{bundle.EditLangLabel_active}" for="active" />
                    <h:inputText id="active" value="#{langController.selected.active}" title="#{bundle.EditLangTitle_active}" />
                    <h:outputLabel value="#{bundle.EditLangLabel_atrdefault}" for="atrdefault" />
                    <h:inputText id="atrdefault" value="#{langController.selected.atrdefault}" title="#{bundle.EditLangTitle_atrdefault}" />
                    <h:outputLabel value="#{bundle.EditLangLabel_deleted}" for="deleted" />
                    <h:inputText id="deleted" value="#{langController.selected.deleted}" title="#{bundle.EditLangTitle_deleted}" />
                </h:panelGrid>
                <h:commandLink action="#{langController.update}" value="#{bundle.EditLangSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditLangViewLink}"/>
                <br />
                <h:commandLink action="#{langController.prepareList}" value="#{bundle.EditLangShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditLangIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
